extends Control


func _on_restart_button_pressed() -> void:
	UiAudio.play()
	_disable_buttons()
	Global.speed = Global.DEFAULT_SPEED
	Fade.change_scene("res://scenes/main.tscn")


func _on_menu_button_pressed() -> void:
	UiAudio.play()
	_disable_buttons()
	Fade.change_scene("res://scenes/menu.tscn")


func _disable_buttons() -> void:
	for button: Button in get_tree().get_nodes_in_group("button"):
		button.disabled = true
